package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_sly_szx database table.
 * 
 */
@Entity
@Table(name="per_sly_szx")
@NamedQuery(name="PerSlySzx.findAll", query="SELECT p FROM PerSlySzx p")
public class PerSlySzx implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_SLY_SZX_SZXID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_SLY_SZX_SZXID_GENERATOR")
	private int szxid;

	//bi-directional many-to-one association to PerSlyScsy
	@ManyToOne
	@JoinColumn(name="SCSYID")
	private PerSlyScsy perSlyScsy;

	//bi-directional many-to-one association to PerSlySz
	@ManyToOne
	@JoinColumn(name="SZID")
	private PerSlySz perSlySz;

	public PerSlySzx() {
	}

	public int getSzxid() {
		return this.szxid;
	}

	public void setSzxid(int szxid) {
		this.szxid = szxid;
	}

	public PerSlyScsy getPerSlyScsy() {
		return this.perSlyScsy;
	}

	public void setPerSlyScsy(PerSlyScsy perSlyScsy) {
		this.perSlyScsy = perSlyScsy;
	}

	public PerSlySz getPerSlySz() {
		return this.perSlySz;
	}

	public void setPerSlySz(PerSlySz perSlySz) {
		this.perSlySz = perSlySz;
	}

}